package service.impl;

import dao.DbdetailsDao;
import entity.Dbdetails;
import org.springframework.stereotype.Service;
import service.DbdetailsService;

import javax.annotation.Resource;
import java.util.List;
@Service("dbdetailsService")
public class Dbdetailsimpl implements DbdetailsService {
    @Resource(name = "dbdetailsDao")
    private DbdetailsDao dbdetailsDao;
    @Override
    public List<Dbdetails> ordernumber(String ordernumber) {
//        String order = ordernumber;
        return dbdetailsDao.ordernumber2(ordernumber);
    }

    @Override
    public Dbdetails queryone(Dbdetails db) {
        return dbdetailsDao.queryone(db);
    }

    @Override
    public int update(Dbdetails db) {
        return dbdetailsDao.update(db);
    }

    @Override
    public int add(Dbdetails db) {
        return dbdetailsDao.add(db);
    }
}
